<%@ page pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/base/taglibs.jsp"%>
<html>
	<head>
		<link href="${ctx}/css/main.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="${ctx}/js/xhEditor/jquery-1.4.2.min.js"></script>
		<script type="text/javascript" src="${ctx}/js/xhEditor/xheditor-zh-cn.min.js"></script>
		<script language="javascript">
			
			function submitAction(action){
				document.manageForm.action = action ;
				document.manageForm.submit();
			}
			
			function saveAction(action) {
				if(document.getElementById("usefulFlag").value == '') {
					alert('请选择是否有用');
					return ;
				}
				if(confirm('保存后将跳转至词条维护页面，该参考信息不再被查询出来，如未复制或备份有用信息请点取消')){
					submitAction(action);
				}
			}
		</script>
	</head>
	
	<body>
		<form method="post" action="" name="manageForm">
			<table border="0" cellspacing="1" cellpadding="3" align="center" width="100%">
				<tr>
					<td class="td11" align="left" colspan="2">
						<input type="button" name="search" value="保存" onClick="saveAction('saveBaikeRef.ac')">
						&nbsp;&nbsp;<input type="button" name="back" value="返回" onClick="submitAction('backToBaikeInfo.ac')">
					</td>
				</tr>
				<tr>
					<td width="20%" class="td2">
						是否有用  <span style="color:red;vertical-align:middle;">*</span>
					</td>
					<td width="100%" class="td2">
						<input type="hidden" name="id" value="${baikeRefInfo.id}">
						<input type="hidden" name="baikeId" value="${baikeRefInfo.baikeId}">
						<select name="usefulFlag" style="width:200px">
							<option value=""></option>
							<option value="1">是</option>
							<option value="0">否</option>
						</select>
					</td>
				</tr>
				<br>
				<tr>
					<td class="td2" colspan="2" align="center">
						<textarea name="baikeDescRef" class="xheditor {tools:'Cut,Copy,Paste,Pastetext,Blocktag,Fontface,FontSize,Bold,Italic,Underline,Strikethrough,FontColor,BackColor,SelectAll,Removeformat,Align,List,Outdent,Indent,Link,Unlink,|,Preview,Print,Fullscreen',skin:'vista',width:750,height:500}">
							${baikeRefInfo.baikeDescRef}
						</textarea>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>